<div class="BoxTool">
    <ul>
        <li class="BoxTitle"> Edit Permission </li>
    </ul> 
    <ul class="BoxSearch" id="BoxSearch">
        <li>
            <?=$begin_form?>
                <div class="BoxOptionLine">
                    <label for="permission_name">Name:</label>
                    <input type="text" id="permission_name" name="permission_name" value="<?=$permission->name?>" />
                </div>
                <div class="BoxOptionLine">
                    <label for="permission_code">Description:</label>
                    <input type="text" id="permission_code" name="permission_code" value="<?=$permission->code?>" />  
                </div>
                <div class="BoxOptionLine">  
                    <label for="permission_order">Active:</label>
                    <select name="permission_order" id="permission_order">
                        <option value="0">  Chọn   </option>
                        <?php      
                        if($perGroups) {  
                            foreach($perGroups as $perGroup) {
                                ?>
                        <option<?=($perGroup->per_id == $permission->order) ? ' selected="selected"' : ''?> value="<?=$perGroup->per_id?>"><?=$perGroup->name?></option>        
                                <?php
                            }
                        }
                        ?>
                    </select>
                </div>
                <div class="BoxOptionLine">
                    <label>&nbsp;</label>
                    <input type="submit" class="button submit" value="Cập nhật">
                    <input type="button" onclick="javascript: location.href='<?=site_url('admin/acl/permission')?>';" class="button" value="Thoát">
                </div> 
            <?=$end_form?>
        </li>
    </ul>  
</div> 
<div class="Clear"></div> 